/**
 * Created by De Niro on 15-4-21.
 */
app.config(['$routeProvider',function($routeProvider){
    $routeProvider.when('/',{
            templateUrl: 'view/login.html',
            controller: 'loginController'
        }
    ).when('/register',{
            templateUrl: 'view/register.html',
            controller: 'registerController'
        }
    ).otherwise({
            redirectTo: '/'
        });
}]);